<hr>
<b><%= @enrollments_choice || "Unknown" %> Enrollments</b>
<hr>

<% @enrollments.sort_by {|e| e.person.search_order}.each do |e| %>
	<div id="name" class="<%= cycle("even","odd") %>" style="float:none;clear:both;">
		<div>
			<span style="float:left;">
				<%= link_to "#{e.person.full_name}", :controller => 'people', :action => 'show', :id => e.person.id %>
			</span>
		<span style="float:right;">
		<%= link_to (image_tag "edit_16x16.gif", :size => "12x12", :border => 0, :title => "Edit this enrollment"), :controller => 'groups', :action => 'edit_enrollment', :id => e %>
		<%= link_to_remote (image_tag "stop.png", :size => "12x12", :border => 0, :title => "Un-enroll now"), :url => {:action => 'remove_person', :id => e.id, :group_id => @group.id} %>
		<%= link_to_remote (image_tag "delete_16x16.gif", :size => "12x12", :border => 0, :title => "Delete this enrollment"), :url => {:action => 'delete_enrollment', :id => e.id, :group_id => @group.id},
		 																														:confirm => "Are you sure you want to delete this enrollment record rather than simply end the enrollment?" %></span></div> 	
	<div style="float:none;clear:both;"><%= e.person.best_email_smart rescue nil %></div>
	</div>
<% end %>
	